package net.googlecode.vasetskiy.task3;

  import java.math.BigDecimal;

/**
 * Created by IntelliJ IDEA.
 * User: Vasetskiy Vlad
 * Date: 29.03.11
 * Time: 13:51
 * To change this template use File | Settings | File Templates.
 */
public class PersonInform {
    private String firstName;
    private String lastName;
    private int age;
    private BigDecimal rate;
    protected boolean perHour;
    protected boolean bonus;
    private BigDecimal bonusAmt;

   public PersonInform(String fName, String lName){
    firstName = fName;
    lastName = lName;
    bonusAmt= BigDecimal.ZERO;

    }

    public String getName(){
      return firstName +" "+ lastName;
    }
    /**
     * Gets age of a person.
     *
     * @return age
     */
    public int getAge() {
      return age;
    }

    /**
     * Gets person's rate.
     *
     * @return person's rate.
     */
    public BigDecimal getRate() {
      return this.rate;
    }

    /**
     * Gets person's Bonus amount.
     *
     * @return person't bonus amount
     */
    public BigDecimal getBonusAmount() {
      return this.bonusAmt;
    }

     /**
     * Checks if person has rate per hour.
     *
     * @return true if person has rate per hour.
     */
    public boolean getPerHour() {
      return perHour;
    }

    /**
     * Checks if person has a bonus.
     *
     * @return true if person has a bonus.
     */
    public boolean getBonus() {
      return bonus;
    }


    /**
     * Sets person's age.
     *
     * @param age person's age.
     */
    public void setAge(final int age) {
        this.age = age;
    }

    /**
     * Sets person's rate.
     *
     * @param rate person's rate.
     */
    public void setRate(final BigDecimal rate) {
        this.rate = rate;
    }


    /**
     * Sets person's bonus amount.
     *
     * @param bAmount person's bonus amount
     */
    public void setBonusAmount(BigDecimal bAmount) {
        bonusAmt = bAmount;
    }

}
